package com.huanri.patterns.mediator;

/**
 * @author Nemo
 * @date 2012-8-20 at MyCode
 */
public class ConcreteMediator extends Mediator {

	private ColleagueA ca;    
    private ColleagueB cb;
    
    public ConcreteMediator() {
        ca = new ColleagueA();
        cb = new ColleagueB();
    }

	@Override
	public void notice(String content) {
		if(content.equals("boss")){
			ca.action();
		}else if(content.equals("client")){
			cb.action();
		}
	}

}
